#ifndef _TIMER_H_
#define _TIMER_H_

#include "stm8s_conf.h"


#define CCR1_Val  ((uint16_t)2047)
#define CCR2_Val  ((uint16_t)2047)
#define CCR3_Val  ((uint16_t)2047)
#define CCR4_Val  ((uint16_t)2047)


#define TIM4_PERIOD       4//124



void TIM1_Config(void);
void tim2_pwm_config();
void TIM4_Config(void);
void Delay(__IO uint32_t nTime);
void TimingDelay_Decrement(void);



#endif

